﻿using System;
using System.Collections.Generic;
using System.Text;
using Pixysoft.Framework.XSchEmA;

namespace Pixysoft.Framework.Noebe.testdriven
{
    class tc_003
    {
        public void test()
        {
            NoebeConfiguration from = new NoebeConfiguration();
            from.Filename = @"access.mdb";
            from.DatabaseType = Pixysoft.Framework.XSchEmA.DatabaseType.Access;

            NoebeConfiguration to = new NoebeConfiguration();
            to.Filename = @"access.clone.mdb";
            to.DatabaseType = Pixysoft.Framework.XSchEmA.DatabaseType.Access;

            XSchemaManager.AccessSchema.Schema.DropDatabase(null, @"access.clone.mdb");
            XSchemaManager.AccessSchema.Schema.CreateDatabase(null, @"access.clone.mdb");
            NoebeManager.Tools.Cloner.StructClone(from, to);
        }
    }
}
